<template>
  <div class="search">
    <div>
      <h1>饿了么</h1>
      <img
        class="you"
        src="../../../public/you.png"
        @click="$router.push('/login')"
      />
    </div>
    <div class="box">
      <van-icon name="search" />
      <input type="text" placeholder="输入商家、商品名称" />
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped lang="scss">
.search {
  background-color: #1989fa;
  padding: 0.3rem;
  h1 {
    font-size: 0.6rem;
    color: #fff;
    margin: 10px 0 15px 5px;
  }
  .box {
    height: 40px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.64rem;
    text-align: center;
    i {
      color: #999;
      margin: 0.05rem 0 0 1.2rem;
      font-size: 18px;
    }
    input {
      border: none;
      outline: none;
      margin: 0.2667rem 0;
      font-size: 0.4267rem;
      padding: 0.1333rem;
      color: #999;
    }
  }
  .you {
    position: absolute;
    top: 20px;
    right: 10px;
    height: 35px;
  }
}
</style>